package com.ruoyi.web.controller.app;

import com.ruoyi.business.domain.WmsInWarehous;
import com.ruoyi.business.service.IWmsInWarehousService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 入库 Controller
 *
 * @author yunlong
 * 2021-12-25 20:10:19
 */
@RestController
@RequestMapping("/app/warehousing")
@Api(tags = "入库管理")
@Slf4j
public class WarehousingController extends BaseController {

    @Autowired
    private IWmsInWarehousService wmsInWarehousService;

    /**
     * @Description: 查询入库单信息
     * @author yunlong
     */
    @ApiOperation(value = "查询入库单信息")
    @GetMapping("getWarehousInfo")
    @CrossOrigin
    public AjaxResult getWarehousInfo(WmsInWarehous info) {
        info = wmsInWarehousService.getWarehousByPlanSn(info.getPlanSn());
        return AjaxResult.success(info);
    }

}
